package com.zxl.controller;

import com.zxl.model.MetaTable;
import com.zxl.service.MetaTableService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/meta/column")
public class MetaTableController {
    @Resource
    private MetaTableService metaTableService;

    @PutMapping
    public void update(@RequestBody MetaTable metaTable) {
        metaTableService.update(metaTable);
    }

    @DeleteMapping("/{id}")
    public void delete(@PathVariable Integer id) {
        metaTableService.deleteById(id);
    }
}
